<script lang="ts" setup>
import { onLaunch } from '@dcloudio/uni-app'
import { useUserStore } from '@/store/user'
const userStore = useUserStore()
onLaunch(() => {
  if (!userStore.login_status) {
    uni.redirectTo({
      url: '/pages/index/login'
    })
  } else {
    userStore.getUserInfo()
  }
})
</script>
<style lang="scss">
@import '@tuniao/tn-style/dist/uniapp/index.css';
@import './uni.scss';
</style>
